const { DataTypes } = require('../utils/sequelize');

const CourseType = {
  name: "CourseType",
  data: {
    categoryId: {
      type: DataTypes.STRING,
      allowNull: false,       //是否能为空
      primaryKey: true,       //主键
    //   autoIncrement: true,    //是否自增
    },
    categoryName: {
      type: DataTypes.STRING,
      allowNull: false,
    }
  },
  options: {
      tableName: 'course_type_tb'
  }
}
module.exports = CourseType